.modalLightContent {
  background-color: var(--white-color) !important;
}

.modalDarkContent {
  background-color: var(--primary-color) !important;

  [class*='chakra-checkbox__control'] {
    border-color: var(--white-color) !important;
  }
}

.aclContainer {
  gap: 0 !important;

  input[type='search'] {
    border-radius: 0;
    border-top-left-radius: $border-radius-sm;
    border-top-right-radius: $border-radius-sm;
  }

  .aclList {
    width: 100%;
    max-height: rem(300);
    overflow: auto;
    border: rem(1) solid var(--secondary-color);
    padding: rem(8);
    border-bottom-left-radius: $border-radius-sm;
    border-bottom-right-radius: $border-radius-sm;

    .aclListItem {
      padding: rem(4);

      &:nth-of-type(odd) {
        background-color: var(--secondary-gray-color);
      }
    }
  }
}

.roleContainer {
  gap: 0 !important;

  input[type='search'] {
    border-radius: 0;
    border-top-left-radius: $border-radius-sm;
    border-top-right-radius: $border-radius-sm;
  }

  .roleList {
    width: 100%;
    max-height: rem(300);
    overflow: auto;
    border: rem(1) solid var(--secondary-color);
    padding: rem(8);
    border-bottom-left-radius: $border-radius-sm;
    border-bottom-right-radius: $border-radius-sm;

    .roleListItem {
      padding: rem(4);

      &:nth-of-type(odd) {
        background-color: var(--secondary-gray-color);
      }
    }
  }
}

.table {
  align-items: center;
  overflow: hidden;
  grid-template-columns: auto max-content !important;

  .dropdownContainer {
    margin: rem(8) 0;
    align-items: center;
    gap: rem(8);

    &.dropdownContainerColumn {
      flex-direction: column;
      align-items: flex-start;
    }

    .scriptTextContainer {
      width: 100%;
      margin-top: rem(8);
    }

    .dropdownButton {
      width: 100%;
      white-space: break-spaces;
      text-align: start;
    }
  }

  .valueWithInfo {
    flex-direction: column;
    align-items: flex-start;
    gap: rem(4);

    .info {
      font-weight: 500;
      text-align: start;
      font-style: italic;
    }
  }

  .maxConnectMarkLabel {
    width: rem(52);
    min-width: rem(52);
    height: rem(32);
    margin-top: rem(-40);
    margin-left: rem(-24);
    border-radius: $border-radius-sm;
  }
}

.fullWidth {
  width: 100% !important;
}

.treeNode {
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.treeNode:hover {
  background-color: var(--chakra-colors-gray-100);
}

.treeNodeSelected {
  background-color: var(--chakra-colors-blue-100);
  font-weight: 600;
}

.indentGuide {
  padding-left: 1rem;
  border-left: 1px dashed var(--chakra-colors-gray-300);
  margin-left: 0.5rem;
}

.folderToggle {
  transition: transform 0.2s ease;
}

.folderToggleOpen {
  transform: rotate(90deg);
}

.treeLabel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-grow: 1;
}
